﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Diagnostics;

namespace Rsa
{
	/// <summary>
	/// Interaction logic for MenuSuperior.xaml
	/// </summary>
	public partial class MenuSuperior : UserControl
	{
        private MainWindow mainWindow;

		public MenuSuperior()
		{
			this.InitializeComponent();
		}

		private void configButton_Click(object sender, System.Windows.RoutedEventArgs e)
		{

            Configuracao config = new Configuracao();

            mainWindow.getCaixaPrincipal().Child = config;

            //passar para outra funcao
            GestorConfigXML gxml = new GestorConfigXML();
            string s = gxml.getEmentaURL();
            Debug.WriteLine(s);
		}

        public void setMainWindow(MainWindow mainWindow)
        {
            this.mainWindow = mainWindow;
        }
	}
}